# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=httprint
pkgver=301
pkgrel=6
groups=('blackarch' 'blackarch-fingerprint')
pkgdesc='A web server fingerprinting tool.'
arch=('x86_64' 'aarch64')
url='http://www.net-square.com/httprint.html'
license=('custom:unknown')
provides=('httprint')
conflicts=('httprint')
source=("http://net-square.com/zip%20folders/${pkgname}_linux_${pkgver}.zip")
sha512sums=('56a2598f4836d3d354f24697cbb2519b7668ee8198e3767597d8a79a4ed425e88042b79731c2a68e6fed5161bb42b35389817c7278612537bb9bc77bb19f6786')

package() {
  cd "httprint_$pkgver/linux"

  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/"
  install -m 755 httprint input.txt nmapportlist.txt signatures.txt \
    "$pkgdir/usr/share/$pkgname/"
  install -m 644 images/* "$pkgdir/usr/share/$pkgname/"

  ln -sf "/usr/share/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
}

